package com.csii.adhoc.dataunits.addcolumn;

import java.io.Serializable;

/**
 * t_data_newfld
 *
 * @author
 */
public class DataNewFld implements Serializable {
    /**
     * 新增列的id
     */
    private String fieldId;

    /**
     * 数据集id
     */
    private String modelId;

    /**
     * 新增列名
     */
    private String colName;

    /**
     * 显示列名
     */
    private String showName;

    /**
     * 新增列类型
     */
    private String type;

    /**
     * 注释
     */
    private String text;

    /**
     * 值1
     */
    private String value1;

    /**
     * 值2
     */
    private String value2;

    /**
     * 值3
     */
    private String value3;

    /**
     * 新增列的排序序号
     */
    private Integer seqNo;

    /**
     * 分组赋值方式
     */
    private String subType;

    private static final long serialVersionUID = 1L;

    public String getFieldId() {
        return fieldId;
    }

    public void setFieldId(String fieldId) {
        this.fieldId = fieldId;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.colName = colName;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue1() {
        return value1;
    }

    public void setValue1(String value1) {
        this.value1 = value1;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public String getValue3() {
        return value3;
    }

    public void setValue3(String value3) {
        this.value3 = value3;
    }

    public Integer getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }

    public String getSubType() {
        return subType;
    }

    public void setSubType(String subType) {
        this.subType = subType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DataNewFld other = (DataNewFld) that;
        return (this.getFieldId() == null ? other.getFieldId() == null : this.getFieldId().equals(other.getFieldId()))
                && (this.getModelId() == null ? other.getModelId() == null : this.getModelId().equals(other.getModelId()))
                && (this.getColName() == null ? other.getColName() == null : this.getColName().equals(other.getColName()))
                && (this.getShowName() == null ? other.getShowName() == null : this.getShowName().equals(other.getShowName()))
                && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
                && (this.getText() == null ? other.getText() == null : this.getText().equals(other.getText()))
                && (this.getValue1() == null ? other.getValue1() == null : this.getValue1().equals(other.getValue1()))
                && (this.getValue2() == null ? other.getValue2() == null : this.getValue2().equals(other.getValue2()))
                && (this.getValue3() == null ? other.getValue3() == null : this.getValue3().equals(other.getValue3())
                && (this.getSeqNo() == null ? other.getValue3() == null : this.getValue3().equals(other.getValue3()))
                && (this.getSubType() == null ? other.getSubType() == null : this.getSubType().equals(other.getSubType()))
        );
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFieldId() == null) ? 0 : getFieldId().hashCode());
        result = prime * result + ((getModelId() == null) ? 0 : getModelId().hashCode());
        result = prime * result + ((getColName() == null) ? 0 : getColName().hashCode());
        result = prime * result + ((getShowName() == null) ? 0 : getShowName().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getText() == null) ? 0 : getText().hashCode());
        result = prime * result + ((getValue1() == null) ? 0 : getValue1().hashCode());
        result = prime * result + ((getValue2() == null) ? 0 : getValue2().hashCode());
        result = prime * result + ((getValue3() == null) ? 0 : getValue3().hashCode());
        result = prime * result + ((getSeqNo() == null) ? 0 : getSeqNo().hashCode());
        result = prime * result + ((getSeqNo() == null) ? 0 : getSeqNo().hashCode());
        result = prime * result + ((getSubType() == null) ? 0 : getSubType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fieldId=").append(fieldId);
        sb.append(", modelId=").append(modelId);
        sb.append(", colName=").append(colName);
        sb.append(", showName=").append(showName);
        sb.append(", type=").append(type);
        sb.append(", text=").append(text);
        sb.append(", value1=").append(value1);
        sb.append(", value2=").append(value2);
        sb.append(", value3=").append(value3);
        sb.append(", seqNo=").append(seqNo);
        sb.append(", subtype=").append(subType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
